﻿@page
@model TemplateWebApp.Pages.ErrorModel
@{
    ViewData["Title"] = "Error";
}

<h1 class="text-danger">Error</h1>
<p class="text-danger">An error occurred while processing your request.</p>

@if (!string.IsNullOrEmpty(Model.ErrorMessage))
{
    <p class="text-secondary">
        <strong>Details:</strong> @Model.ErrorMessage
    </p>
}

@if (Model.ShowRequestId)
{
    <p>
        <strong>Request ID:</strong> <code>@Model.RequestId</code>
    </p>
}
